Skip to content

Conversation

@nadr0
Copy link
Contributor

@nadr0 nadr0 commented Oct 21, 2025

Issue

When you open kcl editor the previous diagnostics are cleared and safe parse is ran and it is confusing.

Implementation

We need to not clear the diagnostics when we unmount the kcl editor. We need to call a higher level function than safeParse which is executeCode because that computes more diagnostics.

safeParse only computes parse errors
lintAst computes the LSP errors
executeAst computes the runtime KCL errors.

@nadr0 nadr0 requested a review from a team as a code owner October 21, 2025 19:05
@vercel
Copy link

vercel bot commented Oct 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
modeling-app Ready Ready Preview Comment Oct 22, 2025 2:49pm

@franknoirot
Copy link
Contributor

This is a follow-up to #7166

Copy link
Contributor

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixed a recurrence of the bug where diagnostics would disappear on open or close of the code pane if they were of the lint or runtime type, and also fixed the behavior in my PR after merging these changes in. Thanks!

@jacebrowning
Copy link
Contributor

@nadr0 I'd recommend reverting the two automated "Update snapshots" commits then immediately pulling in the latest main to fix the recurring snapshot conflicts.

@nadr0
Copy link
Contributor Author

nadr0 commented Oct 29, 2025

Closing this because it didn't actually block Frank and to properly fix this we need to solve the LSP/KCL run time errors/Lint errors globally.

@nadr0 nadr0 closed this Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants